﻿using UnityEngine;

public class ColliderCore_Ellipse : ColliderCore
{
    // 圆形
    public float m_fMinRadius;
    public float m_fMaxRadius;
    // Use this for initialization

    public void DoInit(float fMin, float fMax)
    {
        m_fMinRadius = fMin;
        m_fMaxRadius = fMax;
    }

#if UNITY_EDITOR
    void OnDrawGizmos()
    {
        if (!m_bShow)
            return;
        Gizmos.matrix = gameObject.transform.localToWorldMatrix;
        Gizmos.color = m_Color;
        DrawTools.DrawEllipse(m_CurPos, m_CurDir, m_fMinRadius, m_fMaxRadius, m_fHeight);
    }
#endif
}
